home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / HippoDraw / HippoDrawSrc1.1 / Hippo.subproj / Group.h < prev    next >
Encoding:
Text File  |  1992-04-25  |  1.1 KB  |  52 lines

  1. #import "Graphic.h"
  2.  
  3. @interface Group : Graphic
  4. {
  5.     id cache;        /* an NXImage used to cache the group */
  6.     id components;    /* the Graphics in the group */
  7.     NXRect lastRect;    /* the last rectangle the group was drawn in */
  8.     BOOL dontCache;    /* whether we can cache this group */
  9. }
  10.  
  11. /* Creation methods */
  12.  
  13. - initList:list;
  14. - free;
  15.  
  16. /* Public methods */
  17.  
  18. - transferSubGraphicsTo:list at:(int)position;
  19.  
  20. /* Methods overridden from superclass */
  21.  
  22. - setCacheable:(BOOL)flag;
  23. - (BOOL)isCacheable;
  24. - draw;
  25. - (BOOL)hit:(const NXPoint *)point;
  26.  
  27. /* Compatibility methods */
  28.  
  29. - replaceWithImage;
  30.  
  31. /* Group must override all the setting routines to forward to components */
  32.  
  33. - makeGraphicsPerform:(SEL)aSelector with:(const void *)anArgument;
  34.  
  35. - changeFont:sender;
  36. - font;
  37. - setLineWidth:(const float *)value;
  38. - setGray:(const float *)value;
  39. - setFill:(int)mode;
  40. - setFillColor:(NXColor *)aColor;
  41. - setLineColor:(NXColor *)aColor;
  42. - setLineCap:(int)capValue;
  43. - setLineArrow:(int)arrowValue;
  44. - setLineJoin:(int)joinValue;
  45.  
  46. /* Archiving methods */
  47.  
  48. - write:(NXTypedStream *)stream;
  49. - read:(NXTypedStream *)stream;
  50.  
  51. @end
  52.